<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件对象</title>
    <script src="../jQuery/jQuery.js"></script>
    <style>
        div{
            height: 100px;
            width: 100px;
            background-color: pink;
        }
    </style>
</head>
<body>
    <script>
        $(function(){
            $(document).on("click",function(){
                console.log("点击了document");
            })
            $("div").on("click",function(e){
                //console.log(e);
                console.log("点击了div");  //当点击了div后会冒泡到document
                e.stopPropagation();
                
            })
        })
    </script>
    <div></div>
</body>
</html>